package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.StorageCapacity;
import com.ruoyi.system.mapper.StorageCapacityMapper;
import com.ruoyi.system.service.StorageCapacityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 存储容量统计Service实现类
 *
 * @author admin
 * @date 2025-08-23
 */
@Service
public class StorageCapacityServiceImpl implements StorageCapacityService {
    @Autowired
    private StorageCapacityMapper storageCapacityMapper;

    @Override
    public StorageCapacity selectStorageCapacityById(Long id) {
        return storageCapacityMapper.selectStorageCapacityById(id);
    }

    @Override
    public List<StorageCapacity> selectStorageCapacityList(StorageCapacity storageCapacity) {
        return storageCapacityMapper.selectStorageCapacityList(storageCapacity);
    }

    @Override
    public int insertStorageCapacity(StorageCapacity storageCapacity) {
        return storageCapacityMapper.insertStorageCapacity(storageCapacity);
    }

    @Override
    public List<Map<String, Object>> selectListByName(StorageCapacity storageCapacity) {
        return storageCapacityMapper.selectListByName(storageCapacity);
    }

    @Override
    public int updateStorageCapacity(StorageCapacity storageCapacity) {
        return storageCapacityMapper.updateStorageCapacity(storageCapacity);
    }

    @Override
    public int deleteStorageCapacityById(Long id) {
        return storageCapacityMapper.deleteStorageCapacityById(id);
    }

    @Override
    public int deleteStorageCapacityByIds(Long[] ids) {
        return storageCapacityMapper.deleteStorageCapacityByIds(ids);
    }
}